<h1>Zmiana hasła</h1>

<form action="<?php echo url_for('@change_password') ?>" method="post">
<?php echo $form->renderGlobalErrors() ?>  
	
<table style="width:260px;margin:40px auto">
	<?php if($form['oldpassword']->hasError()): ?><tr><td colspan="2"><?php echo $form['oldpassword']->renderError() ?></td></tr><?php endif ?>
	<tr>
		<td>Stare hasło:</td>
		<td style="width: 128px"><?php echo $form['oldpassword']->render(array('style'=>'width:126px;','title'=>'Wprowadź stare hasło')); ?></td>
	</tr>
	<?php if($form['newpassword1']->hasError()): ?><tr><td colspan="2"><?php echo $form['newpassword1']->renderError() ?></td></tr><?php endif ?>
	<tr>
		<td>Nowe hasło:</td>
		<td style="width: 128px"><?php echo $form['newpassword1']->render(array('style'=>'width:126px;','title'=>'Wprowadź nowe hasło')); ?></td>
	</tr>	
	<?php if($form['newpassword2']->hasError()): ?><tr><td colspan="2"><?php echo $form['newpassword2']->renderError() ?></td></tr><?php endif ?>
	<tr>
		<td>Powtórz hasło:</td>
		<td style="width: 128px"><?php echo $form['newpassword2']->render(array('style'=>'width:126px;','title'=>'Powtórz nowe hasło')); ?></td>
	</tr>
</table>
<?php echo $form['_csrf_token'] ?>
<input type="submit" value="Zmień hasło" style="margin-bottom:40px;"/>
</form>
